翻訳と辞書 |
X Macro X Macro is a technique in the C and C++ programming languages for generating repeating code structures at compile time. It is used when the same operation has to be executed for a list of items, but regular for loops cannot be used. Usage of X Macros dates back to 1960's.〔Meyers, Randy. (''The New C: X Macros'' ). Dr.Dobb's 2001.〕 It remains useful also in modern-day C and C++, but is nevertheless relatively unknown.〔Bright, Walter. (''The X Macro'' ). Dr.Dobb's 2010〕 〔Lucas, Andrew. (''Reduce C-language coding errors with X macros'' ). Embedded.com 2013.〕 ==Implementation== An X-macro consists of two parts: the list, and the execution of the list. The list is just a #define construct which generates no code by itself. The execution of the list provides another #define macro, which is expanded for each entry in the list.
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「X Macro」の詳細全文を読む
スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース |
Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.
|
|